package com.hunttown.mes.rpc.api;

import com.hunttown.common.domain.Page;
import com.hunttown.mes.rpc.domain.LbsTrackDTO;
import com.hunttown.mes.rpc.domain.query.LbsTrackDTOQuery;

import java.util.Map;

/**
 * created by wangjunfu on 2021-07-05 11:06:24
 */
public interface LbsTrackRpcService {

    LbsTrackDTO insert(LbsTrackDTO lbsTrackDTO);

    Boolean updateInfoById(LbsTrackDTO lbsTrackDTO);

    Boolean updateInfoByQuery(LbsTrackDTOQuery lbsTrackDTOQuery);

    LbsTrackDTO selectById(Integer id);

    LbsTrackDTO selectObjByQuery(LbsTrackDTOQuery lbsTrackDTOQuery);

    Page<LbsTrackDTO> getListForPage(LbsTrackDTOQuery lbsTrackDTOQuery);

    Boolean deleteById(Integer id);

    Map<String, Integer> getTraceKeyFromCache(String terminalCode, Integer clientType, Integer userType, Integer entId);

    //组装trackCode
    String packageTrackCode(Integer clientType, Integer userType, Integer onlyId);
}